package com.jiyinit.web.core.video.controller;

import com.jiyinit.web.core.video.dto.SRSRequest;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by user1 on 2019/1/22.
 */
public interface SRSInterceptor {
    void onConnect(SRSRequest srsRequest, HttpServletRequest request, HttpServletResponse response);
    void onClose( SRSRequest srsRequest, HttpServletRequest request, HttpServletResponse response);
    void onPublish( SRSRequest srsRequest, HttpServletRequest request, HttpServletResponse response);
    void onUnpublish( SRSRequest srsRequest, HttpServletRequest request, HttpServletResponse response);
    void onPlay( SRSRequest srsRequest, HttpServletRequest request, HttpServletResponse response);
    void onStop( SRSRequest srsRequest, HttpServletRequest request, HttpServletResponse response);
    void onDvr( SRSRequest srsRequest, HttpServletRequest request, HttpServletResponse response);
}
